<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:m;">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="width:175px;height:auto;top:347px;left:212px;"
    onParamsReceive="modelParamsReceive" onLoad="modelLoad"> 
    <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="BarCode_Data" idColumn="code"><column label="主单ID" name="ID" type="Integer" xid="xid3"></column>
  <column label="条码" name="code" type="String" xid="xid4"></column>
  <column label="条码类型" name="Type" type="String" xid="xid5"></column>
  </div>
  <div component="$UI/system/components/justep/data/data" autoLoad="true" xid="PrdList_Data" idColumn="SubID"><column label="明细ID" name="ID" type="Integer" xid="xid2"></column>
  <column label="批次" name="Batch" type="String" xid="xid7"></column>
  <column label="是否正反选" name="IsBool" type="Integer" xid="xid8"></column></div>
  <div component="$UI/system/components/justep/data/data" autoLoad="false" xid="ID_LIST_Data" autoNew="true" idColumn="ID">
   <column label="调拨单号" name="AllotCode" type="String" xid="column3"></column>
  <column label="主单ID" name="AllotID" type="Integer" xid="column5"></column>
  <column label="批次" name="Batch" type="String" xid="column7"></column>
  <column label="批次总数" name="BatchSum" type="Integer" xid="column9"></column>
  <column label="实际上传数量" name="FactSum" type="Integer" xid="column4"></column>
  <column label="明细ID" name="ID" type="Integer" xid="column6"></column>
  <column label="目标仓库编号" name="MWarCrtyCode" type="String" xid="xid1"></column>
  <column label="目标仓库名称" name="MWarCrtyName" type="String" xid="column1"></column>
  <column label="包装比例" name="PackingRatio" type="String" xid="column2"></column>
  <column label="调拨日期" name="PlanDateStr" type="String" xid="column3"></column>
  <column label="计划调拨数量" name="PrdCount" type="Integer" xid="column4"></column>
  <column label="产品名称" name="PrdName" type="String" xid="xid6"></column>
  <column label="产品编号" name="PrdNo" type="String" xid="column5"></column>
  <column label="是否反选" name="IsBool" type="Boolean" xid="xid9"></column>
  <rule xid="rule1">
   <col name="FactSum" xid="ruleCol1">
    <calculate xid="calculate1">
     <expr xid="default1">$model.BarCode_Data.Count(function(ev) { var v = ev.source.getValue('ID', ev.row); return v == $row.val(&quot;ID&quot;); })</expr></calculate> </col> </rule></div></div>  
   
<div component="$UI/system/components/justep/contents/contents" class="x-contents x-full" active="0" xid="contents1">
   <div class="x-contents-content" xid="TaskDetailsCntent"><div component="$UI/system/components/justep/panel/panel" class="x-panel x-full" xid="panel1"> 
    <div class="x-panel-top" xid="top1"> 
      <div component="$UI/system/components/justep/titleBar/titleBar" class="x-titlebar" xid="titleBar1"> 
        <div class="x-titlebar-left" xid="left1"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-only-icon" xid="BackBtn" label="&lt;" icon="linear linear-chevronleft" onClick="BackBtnClick"> 
            <i xid="i10" class="linear linear-chevronleft" />  
            <span xid="span9">&amp;lt;</span> 
          </a> 
        </div>  
        <div class="x-titlebar-title" xid="title1"><![CDATA[调拨出库]]></div>  
        <div class="x-titlebar-right reverse" xid="right1" style="width:200px;"> 
          <a component="$UI/system/components/justep/button/button" class="btn btn-success" label="上传" xid="SendButton" onClick="SendButtonClick"> 
            <i xid="i1" />  
            <span xid="span1">上传</span> 
          </a> 
        </div> 
      </div> 
    </div>  
    <div class="x-panel-content" xid="content1"> 
      <div component="$UI/system/components/justep/list/list" class="x-list" xid="list1" data="ID_LIST_Data"> 
        <ul class="x-list-template" xid="listTemplateUl1"> 
          <li xid="li1" style="border-bottom-style:dotted;border-bottom-color:#0080C0;"> 
            <div component="$UI/system/components/justep/row/row" class="x-row" xid="row5">
   <div class="x-col" xid="col12" style="background-color:#E1F0FF;"><div component="$UI/system/components/justep/row/row" class="x-row" xid="row2" style="padding:0px;margin:0px;height:25px;"> 
              <div class="x-col x-col-fixed" xid="col5" style="width:auto;"> 
                <label xid="label2" style="font-weight:bold;color:#003366;"><![CDATA[产品名称:]]></label></div> 
            <div class="x-col" xid="col3" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;"><label xid="label4" bind-text='val("PrdName")'>label</label></div></div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row1" style="padding:0px;margin:0px;height:25px;">
   <div class="x-col x-col-fixed" xid="col4" style="width:auto;">
    <label xid="label5" style="font-weight:bold;color:#003366;"><![CDATA[产品批次:]]></label></div> 
   <div class="x-col" xid="col6" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;">
    <label xid="label6" bind-text='val("Batch")'>label</label></div> </div><div component="$UI/system/components/justep/row/row" class="x-row" xid="row4" style="padding:0px;margin:0px;height:25px;">
   <div class="x-col x-col-fixed" xid="col9" style="width:auto;">
    <label xid="label7" style="font-weight:bold;color:#003366;"><![CDATA[包装比例:]]></label></div> 
   <div class="x-col" xid="col7" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;">
    <label xid="label8" bind-text='val("PackingRatio")'>label</label></div> 
  <div class="x-col x-col-fixed" xid="col10" style="width:auto;">
   <label xid="label9" style="color:#003366;"><![CDATA[产品编号:]]></label></div>
  <div class="x-col" xid="col11" style="border-bottom-style:solid;border-bottom-width:1px;border-bottom-color:#0080C0;">
   <label xid="label10" bind-text='val("PrdNo")'>label</label></div></div></div>
   </div>  
            <div component="$UI/system/components/justep/row/row" class="x-row" xid="row3" style="padding-bottom:0px"> 
              <div class="x-col" xid="col8"> 
                <label class="x-label" xid="label3" style="color:#339966;padding:0px;margin:0px"><![CDATA[批次总数:]]></label>
  <label class="x-label" xid="label11" style="padding:0px;margin:0px;color:#339966;text-align:left;text-decoration:underline;" bind-text='val("BatchSum")'><![CDATA[0]]></label>
  <label class="x-label" xid="label12" style="padding:0px;margin:0px; color:#339966;"><![CDATA[计划发货:]]></label>
  <label class="x-label" xid="label13" style="padding:0px;margin:0px;color:#339966;text-align:left;text-decoration:underline;" bind-text='val("PrdCount")'>0</label>
  <label class="x-label" xid="label15" style="padding:0px;margin:0px;color:#339966;"><![CDATA[已扫数量:]]></label>
  <label class="x-label" xid="label14" style="padding:0px;margin:0px;text-align:left;color:#FF0000;font-weight:bold;" bind-text='val("FactSum")'>0</label></div>  
              </div> 
          <div component="$UI/system/components/justep/row/row" class="x-row" xid="row6" style="padding:0px">
   
   <div class="x-col x-col-fixed x-col-center" xid="col17" style="width:auto;"><label xid="label22" bind-visible='val("Batch") !== undefined  &amp;&amp; val("Batch").length &gt; 1'><![CDATA[反选条码]]></label>
  </div><div class="x-col" xid="col18"><span component="$UI/system/components/justep/button/toggle" class="x-toggle x-toggle-sm" xid="toggle1" ON="开" OFF="关" type="checkbox" checked="false" bind-visible='val("Batch") !== undefined  &amp;&amp; val("Batch").length &gt; 1' bind-ref='ref("IsBool")'></span>
  </div><div class="x-col x-col-fixed x-col-center" xid="col16" style="text-align:right;width:auto;">
    <a component="$UI/system/components/justep/button/button" class="btn x-green btn-sm btn-icon-left " xid="button1" icon="e-commerce e-commerce-saomiao" label="扫码" onClick="QRScan_ButtonClick">
     <i xid="i2" class="e-commerce e-commerce-saomiao"></i>
     <span xid="span2">扫码</span></a> </div> 
  </div></li> 
        </ul> 
      </div> 
    </div>  
    <div class="x-panel-bottom" xid="bottom1" /> 
  </div></div>
  <div class="x-contents-content" xid="ScanCodeContent"><div component="$UI/system/components/justep/windowContainer/windowContainer" class="x-window-container" xid="ScanCodeWindowContainer"></div></div></div></div>
